#include <TrafficLight.h>
Inheritance diagram for TrafficLight:

Public Member Functions | |
| TrafficLight (OSGWindows *osgwind__) | |
| TrafficLight (OSGWindows *osgwind, TrafficLightTypes newType, TrafficLightColor newColor, TrafficLightColor newArrowColor=YESIL) | |
| ~TrafficLight () | |
| void | setColor (TrafficLightColor color) |
| void | draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| TrafficLightColor | getColor () |
| TrafficLightColor | getArrowColor () |
| TrafficLightTypes | getTrafficLightType () |
| void | setNewFramesLightColor (int oldFrameId, int newFrameId) |
| void | changeColor (int frameId) |
| void | changeColorAnim (int frameId) |
| void | fillColorArray (TrafficLightColor newcolor) |
| TrafficLightColor | getFrameColor (int frameId) |
| void | setFrameColor (int frameId, int color) |
Public Attributes | |
| osg::ref_ptr< osg::Sequence > | seqNode |
Private Attributes | |
| TrafficLightTypes | lightType |
| TrafficLightColor | color |
| TrafficLightColor | arrowColor |
| int | colorArray [101] |
| OSGWindows * | osgwind_ |
Definition at line 5 of file TrafficLight.h.
|
|
Constructor for the Traffic Light. The Ligth is created with default parameters.
Definition at line 30 of file TrafficLight.cpp. References arrowColor, color, colorArray, LIGHT, lightType, NORMAL_ISIK, TraffEduObject::objectGroup, osgwind_, seqNode, TraffEduObject::setObjectId(), TraffEduObject::setObjectType(), and YESIL. |
|
||||||||||||||||||||
|
Constructor for the Traffic Light.
Definition at line 44 of file TrafficLight.cpp. References arrowColor, color, fillColorArray(), LIGHT, lightType, TraffEduObject::objectGroup, osgwind, osgwind_, seqNode, TraffEduObject::setObjectId(), and TraffEduObject::setObjectType(). |
|
|
A destructor for the Traffic Light. Definition at line 57 of file TrafficLight.cpp. |
|
|
Responsible from the color change of the Traffic Light.
Definition at line 98 of file TrafficLight.cpp. References colorArray, getFrameColor(), TraffEduObject::objectGroup, and TrafficModel::trafficLight(). |
|
|
Resonsible from changing the color of the Traffic Light during animation.
Definition at line 106 of file TrafficLight.cpp. References getFrameColor(), TraffEduObject::objectGroup, and TrafficModel::trafficLight(). |
|
||||||||||||
|
The function responsible from the addition of Traffic Light to the scene root.
Implements TraffEduObject. Definition at line 70 of file TrafficLight.cpp. References TraffEduObject::addTree(), TraffEduObject::objectGroup, and seqNode. |
|
|
Responsible from filling the color array of a TrafficLight. Each Traffic Light holds a coor array in which they hold the color values of the light in each frame.
Definition at line 114 of file TrafficLight.cpp. References colorArray, SARI, and YESIL. Referenced by TrafficLight(). |
|
|
Getter for the arrow color of the TrafficLight
Definition at line 59 of file TrafficLight.h. References arrowColor. |
|
|
Getter for the color of the TrafficLight
Definition at line 53 of file TrafficLight.h. References color. |
|
|
Getter for the color of the TrafficLigth for a specific frame.
Definition at line 133 of file TrafficLight.cpp. References colorArray, KIRMIZI, SARI, and YESIL. Referenced by changeColor(), changeColorAnim(), and AnimationWindow::generateSeq(). |
|
|
Getter for the type of the TrafficLight
Definition at line 65 of file TrafficLight.h. References lightType. |
|
|
Setter for the light of the Traffic Light.
Definition at line 157 of file TrafficLight.cpp. References color. |
|
||||||||||||
|
Setter for the color of TrafficLight for a specific frame.
Definition at line 143 of file TrafficLight.cpp. References colorArray. |
|
||||||||||||
|
Setter for the color of the TrafficLight in frame
Definition at line 152 of file TrafficLight.cpp. References colorArray. |
|
|
Definition at line 9 of file TrafficLight.h. Referenced by getArrowColor(), and TrafficLight(). |
|
|
Definition at line 8 of file TrafficLight.h. Referenced by getColor(), setColor(), and TrafficLight(). |
|
|
Definition at line 10 of file TrafficLight.h. Referenced by changeColor(), fillColorArray(), getFrameColor(), setFrameColor(), setNewFramesLightColor(), and TrafficLight(). |
|
|
Definition at line 7 of file TrafficLight.h. Referenced by getTrafficLightType(), and TrafficLight(). |
|
|
Definition at line 11 of file TrafficLight.h. Referenced by TrafficLight(). |
|
|
A public pointer to Sequence Node. Definition at line 111 of file TrafficLight.h. Referenced by draw(), AnimationWindow::generateSeq(), and TrafficLight(). |
1.4.6-NO